package org.jetlinks.demo.protocol.siterwell.tcp.message;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 网关上传消息到平台后，
 * 平台需回复确认的响应消息
 * 这是默认实现的平台确认回复的消息
 */
@Getter
@Setter
public class S2DDefaultReplyResponse extends AbstractCommandResponse {


    public static S2DDefaultReplyResponse of(AbstractCommandRequest request) {
        return  new S2DDefaultReplyResponse(request);

    }

    public S2DDefaultReplyResponse(AbstractCommandRequest request) {
        super(request);
    }

    protected String getHexResponseData() {
        return "00";
    }

    @Override
    public String toString() {
        return "{" +
                "default response : 00 ." +
                '}';
    }
}
